package com.grapes.view;

import com.grapes.R;

import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

public class CompanyPositionDetailActivity extends GrapesActivity {
	private String companyId;
	private String companyName;
	private TextView positionDetail;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.position_detail);
		companyName = getIntent().getStringExtra(
				CompanyFavoritorActivity.INTENT_EXTRA_COMPANY_NAME);
		TextView titleView = (TextView) findViewById(R.id.position_detail_title_text);
		titleView.setText(companyName);

		companyId = getIntent().getStringExtra(
				CompanyFavoritorActivity.INTENT_EXTRA_COMPANY_ID);

		Button backBtn = (Button) findViewById(R.id.position_detail_title_back_btn);
		backBtn.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View arg0) {
				goBack();
			}
		});

		Button favoriteBtn = (Button) findViewById(R.id.position_detail_title_favorite_btn);
		favoriteBtn.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
				favoriteCompany();
			}
		});

		Button shareBtn = (Button) findViewById(R.id.position_detail_share_btn);
		shareBtn.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
				shareCompany();
			}
		});

		Button refuseBtn = (Button) findViewById(R.id.position_detail_refuse_btn);
		refuseBtn.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
				refuseCompany();
			}
		});

		Button checkCommentsBtn = (Button) findViewById(R.id.position_detail_comment_list_btn);
		checkCommentsBtn.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
				switchToCompanyCommentsPage();
			}
		});

		positionDetail = (TextView) findViewById(R.id.position_detail_text);
	}

	private void favoriteCompany() {

	}

	private void shareCompany() {

	}

	private void refuseCompany() {

	}

	private void switchToCompanyCommentsPage() {
		goBack();
	}
}
